package com.itheima.service;

import com.itheima.doman.pojo.PageResult;
import com.itheima.doman.pojo.StdQueryParam;
import com.itheima.doman.pojo.Student;
import com.itheima.execl.model.StudentModel;
import org.springframework.stereotype.Service;

import java.util.List;

public interface StdService {
    PageResult<Student> page(StdQueryParam stdQueryParam);

    void deleteByIds(List<Integer> ids);

    void addStd(Student student);

    Student findById(Integer id);

    void update(Student student);

    /**
     *  更新违规次数
     * @param id
     * @param score
     */
    void updateViolation(Integer id, Integer score);
    /**
     * 导入学生信息
     */
    void importStudent(List<StudentModel> cachedDataList, Integer clazzId);

    /**
     *  导出学生信息
     */
    List<StudentModel> list(String name, Integer degree, Integer clazzId);
}
